Exemple #1
0
 void Start ()
 {
     state = 0;
     ball = GameObject.Find("Football");
     goal = GameObject.Find("Goal_001").transform.position;
     movementControls = gameObject.GetComponent<MovementControls>();
     armControls = gameObject.GetComponent<ArmControls>();
     destination = new Vector3(-23, 0, -4);
     obstacle = ball.GetComponent<NavMeshObstacle>();
 }