// Use this for initialization private void Start() { player = GameObject.Find("Player"); _GSM = GameObject.Find("GlobalStateMachine").GetComponent <GlobalSquadMovement>(); _GS = GameObject.Find("GlobalStateMachine").GetComponent <GlobalStateMachine>(); }
// Start is called before the first frame update void Start() { gsm = GameObject.Find("GSM").GetComponent <GlobalStateMachine>(); bldComponent = building.GetComponent <Building>(); }
// Start is called before the first frame update void Start() { gsm = GameObject.Find("GSM").GetComponent <GlobalStateMachine>(); InvokeRepeating("MineAllTiles", 0, gsm.tickDelay); tiles = GetComponentsInChildren <Mineable>(); }
// Use this for initialization void Start() { _GSM = GameObject.Find("GlobalStateMachine").GetComponent <GlobalStateMachine>(); player = GameObject.Find("Player"); }