add ckg
plantilla base para movimiento básico
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class buildingAndFloorObjectInfoSystem : MonoBehaviour
|
||||
{
|
||||
public mapCreator mapCreatorManager;
|
||||
public Transform buildingParent;
|
||||
public Transform floorParent;
|
||||
|
||||
GameObject currentObjectToChangeBuildingInfo;
|
||||
|
||||
public void setCurrentObjectToChangeBuildingInfo (GameObject newObject)
|
||||
{
|
||||
currentObjectToChangeBuildingInfo = newObject;
|
||||
}
|
||||
|
||||
public void setBuildingAndFloorInfoToObject ()
|
||||
{
|
||||
mapCreatorManager.setBuildingAndFloorInfoToObject (currentObjectToChangeBuildingInfo, buildingParent, floorParent);
|
||||
}
|
||||
|
||||
public void setBuildingFloorInfo (Transform newBuildingParent, Transform newFloorParent, mapCreator newMapCreator)
|
||||
{
|
||||
mapCreatorManager = newMapCreator;
|
||||
buildingParent = newBuildingParent;
|
||||
floorParent = newFloorParent;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user