Esempio n. 1
0
    void Start()
    {
        handGestures = GameObject.FindGameObjectWithTag("Gestures").GetComponent <HandGestures>();
        player       = GameObject.FindGameObjectWithTag("Player");
        vp           = player.GetComponent <VolleyballPlayer>();

        HandGestures.OnGestureChanged += CheckRemoveSetGesture;
    }
    public bool HandleInteraction(VolleyballPlayer player)
    {
        if (player.team != currentPossesion)
        {
            ChangePossesion();
            return(true);
        }

        return(false);
    }
Esempio n. 3
0
 void Start()
 {
     vp = GetComponentInParent <VolleyballPlayer>();
 }
Esempio n. 4
0
 void Start()
 {
     platform = GetComponent <BoxCollider>();
     vp       = GameObject.FindGameObjectWithTag("Player").GetComponent <VolleyballPlayer>();
     HandGestures.OnGestureChanged += OnGestureChanged;
 }