void Awake() { stateBuild = new HouseStateBuild(); stateIdle = new HouseStateIdle(); stateOpen = new HouseStateOpen(); stateClose = new HouseStateClose(); stateDestroy = new HouseStateDestroy(); FSM = new FiniteStateMachine<HouseController>(); houseAnimation = this.GetComponentInChildren<HouseAnimation>(); }
void Awake() { stateBuild = new HouseStateBuild(); stateIdle = new HouseStateIdle(); stateOpen = new HouseStateOpen(); stateClose = new HouseStateClose(); stateDestroy = new HouseStateDestroy(); FSM = new FiniteStateMachine <HouseController>(); houseAnimation = this.GetComponentInChildren <HouseAnimation>(); }