Beispiel #1
0
    public void MissionFlyingIcoFlyStopped()
    {
        MissionIco missionIco = missionFlyingIco.GetMissionIco();

        missionIco.singleTransform.parent = missionIconPlace.singleTransform;
        AnimationFactory.FlyXYZ(missionIco, new Vector3(0f, 0f, -0.01f), 0.2f, "flyXYZFin");
        Destroy(missionFlyingIco.gameObject);
        missionFlyingIco = null;
    }
Beispiel #2
0
    public void AddCurrentMissionNotifier(MissionNotifier missionNotifier)
    {
        CurrentMissionNotifier notifier = GetCurrentMissionNotifier();
        Mission mission = missionNotifier.GetMission();

        notifier.SetMission(mission);
        MissionIco       missionIco       = missionNotifier.GetMissionIco();
        MissionFlyingIco missionFlyingIco = Instantiate(missionFlyingIcoPrefab) as MissionFlyingIco;

        missionFlyingIco.singleTransform.parent   = singleTransform;
        missionFlyingIco.singleTransform.position = missionIco.singleTransform.position;
        missionFlyingIco.SetMissionIco(missionIco);

        notifier.SetMissionFlyingIco(missionFlyingIco);
        AddNotifier(notifier);
    }
Beispiel #3
0
 public void SetMissionFlyingIco(MissionFlyingIco missionFlyingIco)
 {
     this.missionFlyingIco = missionFlyingIco;
     missionFlyingIco.SetCurrentMissionNotifier(this);
 }