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