// Use this for initialization void Start () { combatActions = transform.parent.gameObject.GetComponent<EnemyCombatActions>(); //Set Variable timers SetCountDowns(); }
// Use this for initialization void Start() { if(isPlayer) { playerAction = gameObject.GetComponent<PlayerCombatActions>(); } else { enemyAction = gameObject.GetComponent<EnemyCombatActions>(); } }
void Start() { combatAction = transform.parent.gameObject.GetComponent<EnemyCombatActions>(); }