void OnSceneGUI()
    {
        Dog_Cursor cursor = (Dog_Cursor)target;

        Handles.color = Color.red;
        Handles.DrawWireCube(cursor.mousePosition, new Vector3(1f, 1f, 1f));
    }
Beispiel #2
0
 void Start()
 {
     isControllingBall = false;
     isInDogMouth      = false;
     cursor            = GameObject.Find("Camera").GetComponent <Dog_Cursor>();
     ballRb            = GetComponent <Rigidbody>();
 }
Beispiel #3
0
 void Start()
 {
     cursor      = GameObject.Find("Camera").GetComponent <Dog_Cursor>();
     ball        = GameObject.Find("DogBall");
     dogball     = ball.GetComponent <Dog_Ball>();
     ballRb      = ball.GetComponent <Rigidbody>();
     dogAnimator = GetComponent <Animator>();
     hasBall     = false;
     isRunning   = false;
     droppedBall = false;
 }