void OnSceneGUI() { Dog_Cursor cursor = (Dog_Cursor)target; Handles.color = Color.red; Handles.DrawWireCube(cursor.mousePosition, new Vector3(1f, 1f, 1f)); }
void Start() { isControllingBall = false; isInDogMouth = false; cursor = GameObject.Find("Camera").GetComponent <Dog_Cursor>(); ballRb = GetComponent <Rigidbody>(); }
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; }