예제 #1
0
 void Start()
 {
     planeObj   = GetComponentInParent <PlaneMovements>();
     toIdle     = Quaternion.Euler(0, 0, 95);
     diveAngle  = Quaternion.Euler(0, 0, 75);
     ResetAngle = Quaternion.Euler(0, 0, 90);
 }
예제 #2
0
 void Start()
 {
     anim         = GetComponentInParent <Animator>();
     playerPrefab = GameObject.FindGameObjectWithTag("Player");
     planeScript  = playerPrefab.GetComponent <PlaneMovements>();
 }
예제 #3
0
 // Use this for initialization
 void Start()
 {
     data         = GetComponent <DataLoader>();
     playerPrefab = GameObject.FindGameObjectWithTag("Player");
     planeScript  = playerPrefab.GetComponent <PlaneMovements>();
 }