void Awake() { mapCtrl = GetComponent<MapController>(); wispCtrl = GetComponent<WispController>(); unitCtrl = GetComponent<UnitController>(); camCtrl = GetComponent<CameraController>(); gameUICtrl = GetComponent<GameUIController>(); spLib = GetComponent<SpriteLibrary>(); }
// Use this for initialization private void Awake() { parent = transform.parent.gameObject; sc = GameObject.Find("ScoreController").GetComponent <ScoreController>(); mo = parent.GetComponent <MovementOmni>(); player = GameObject.Find("Player").transform; wispCont = GameObject.Find("WispController").GetComponent <WispController>(); child1 = parent.transform.GetChild(1).gameObject; anim = this.GetComponent <Animator>(); render = this.GetComponent <Renderer>(); }
private void Awake() { wispCont = GameObject.Find("WispController").GetComponent <WispController>(); }