void Start() { canAct = true; inventory = this.gameObject.GetComponent <Inventory>(); actors = GameObject.FindGameObjectsWithTag("Actor"); rndObj = GameObject.FindGameObjectWithTag("Round Controller"); rnd = rndObj.GetComponent <RoundController>(); gridBase = GridHandler.GetInstance(); hasAligned = false; moveCount = -1; actionCount = 0; maxActionCount = this.GetComponent <CharacterData>().maxActionCount; timer = 0f; againstWall = false; if (this.gameObject.GetComponent <CharacterData>().isPlayer == true) { freeRoam = true; } else { freeRoam = false; } }
void Awake() { instance = this; }