Пример #1
0
    public void BallGrabbed()
    {
        print("Grab Called");
        GameObject            ball        = GameObject.Find("Dribble Collider");
        MovePlayerOnCollision otherScript = ball.GetComponent <MovePlayerOnCollision>();

        if (otherScript.letGo == true)
        {
            otherScript.Grab();
        }
    }
Пример #2
0
    public void BallLetgo()
    {
        print("LetGo Called");

        GameObject            ball        = GameObject.Find("Dribble Collider");
        MovePlayerOnCollision otherScript = ball.GetComponent <MovePlayerOnCollision>();

        if (otherScript.letGo == false)
        {
            otherScript.LetGo();
        }
    }