public virtual void Start() { nowFloor = 0; GameObject taskObject = Utility.GetTaskObject(); floorTask = taskObject.GetComponent <DrawingFloorTask>(); gameTask = taskObject.GetComponent <GameTask>(); }
void Awake() { moveObjectTask = gameObject.AddComponent <MoveObjectTask>(); stageCreateTask = gameObject.AddComponent <StageCreateTask>(); uiTask = gameObject.AddComponent <GameUiTask>(); mapObjects = new List <MapObject>(); stageCreateTask.MapDataCreate(GetPath.Txt + "/" + stageName, mapObjects, ref stageData); Special = new SpecialObject(); textEvent = false; eventCount = 0; controllerTask = GetComponent <ControllerTask>(); drawFloorTask = GetComponent <DrawingFloorTask>(); }