public override void OnStart() { state.text = stateText; gm = GameManager.instance; teamComp = GetComponent <Team>(); ihtb = gameObject.GetComponent <IHaveTheBall>(); }
//-----------METODOS AUXILIARES PARA LAS CONDICIONES------------- // establece que jugador tiene la pelota public void setIHaveTheBall(IHaveTheBall ballOwner_) { if (ballOwner != null) { ballOwner.setBool(false); } ballOwner = ballOwner_; ballOwner.setBool(true); }
public override void OnStart() { ihtb = gameObject.GetComponent <IHaveTheBall>(); }
public override void OnStart() { gm = GameManager.instance; ihtb = gameObject.GetComponent <IHaveTheBall>(); }