public virtual void SetReferences() { view = GetComponent <SelectableView> (); selectionMngr = FindObjectOfType <SelectionMngr> (); mov = GetComponent <Movable> (); att = GetComponentInChildren <Attackable> (); aggPA = GetComponentInChildren <AggressivePlayerAttack> (); aggAA = GetComponentInChildren <AggressiveAutoAttack> (); }
//====================================================================== void Awake() { // Configure input. Input.simulateMouseWithTouches = false; Input.backButtonLeavesApp = true; //Cache components _cam = Camera.main; _camDrag = GetComponent <CamDragMngr> (); _selMngr = GetComponent <SelectionMngr> (); }