// Use this for initialization void Start() { playerState = PLAYERSTATE.IDLE; gridManager = GameObject.FindWithTag("Game Overseer").GetComponent <GridManager>(); currentIndex = gridManager.PosToIndex(this.transform.position); currentCharacter = gridManager.GetComponent <SwapCharacter>(); billySound = GameObject.FindWithTag("ShieldRobot").GetComponent <AudioSource>(); mandySound = GameObject.FindWithTag("AgileRobot").GetComponent <AudioSource>(); mandy = GameObject.FindWithTag("AgileRobot"); }
void Start() { currentCharacter = GameObject.FindWithTag("Game Overseer").GetComponent <SwapCharacter>(); if (this.transform.CompareTag("PressurePlate")) { pressureSource = this.transform.GetComponent <AudioSource>(); } else if (this.transform.CompareTag("Switch")) { switchSource = this.transform.GetComponent <AudioSource>(); } }
// Use this for initialization void Start() { gridManager = GameObject.FindWithTag("Game Overseer"); swap = gridManager.GetComponent <SwapCharacter>(); }
// Use this for initialization void Start() { gridManager = GameObject.FindWithTag("Game Overseer").GetComponent <GridManager>(); currentCharacter = GameObject.FindWithTag("Game Overseer").GetComponent <SwapCharacter>(); }
// Use this for initialization void Start() { billySound = GameObject.FindWithTag("ShieldRobot").GetComponent <AudioSource>(); mandySound = GameObject.FindWithTag("AgileRobot").GetComponent <AudioSource>(); currentCharacter = GameObject.FindWithTag("Game Overseer").GetComponent <SwapCharacter>(); }