Beispiel #1
0
 public void AircraftLanding(PlayerAircraftScript playerAircraftSript, AircraftData aircraftData)
 {
     hangarScript.AircraftLands(aircraftData);
     Destroy(playerAircraftSript.gameObject);
     landingAnimation.gameObject.SetActive(true);
     landingAnimation.LandingAnimationStart();
 }
Beispiel #2
0
        public void StartAnimationEnd()
        {
            GameObject           fighter        = Instantiate(FighterPrefab, takeOff.transform.position, takeOff.transform.rotation);
            PlayerAircraftScript aircraftScript = fighter.GetComponent <PlayerAircraftScript>();

            aircraftScript.gameManager  = gameManager;
            aircraftScript.aircraftData = tempAircraftData;
        }
Beispiel #3
0
    private void Start()
    {
        aircraftScript = gameObject.GetComponent <PlayerAircraftScript>();
        positions      = new List <Vector3>();
        positions.Add(transform.position);

        lineRenderer            = GetComponent <LineRenderer>();
        lineRenderer.startColor = Color.gray;
        lineRenderer.endColor   = Color.gray;
    }