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); }
void Start() { vp = GetComponentInParent <VolleyballPlayer>(); }
void Start() { platform = GetComponent <BoxCollider>(); vp = GameObject.FindGameObjectWithTag("Player").GetComponent <VolleyballPlayer>(); HandGestures.OnGestureChanged += OnGestureChanged; }