Пример #1
0
 public override void OnStart()
 {
     state.text = stateText;
     gm         = GameManager.instance;
     teamComp   = GetComponent <Team>();
     ihtb       = gameObject.GetComponent <IHaveTheBall>();
 }
Пример #2
0
        //-----------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);
        }
Пример #3
0
 public override void OnStart()
 {
     ihtb = gameObject.GetComponent <IHaveTheBall>();
 }
Пример #4
0
 public override void OnStart()
 {
     gm   = GameManager.instance;
     ihtb = gameObject.GetComponent <IHaveTheBall>();
 }