示例#1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
示例#2
0
    void OnTriggerEnter(Collider c)
    {
        if (triggered)
        {
            return;
        }

        ThirdPersonPlayer player = c.gameObject.GetComponent <ThirdPersonPlayer>();

        if (player != null)
        {
            PingGUI.PopupText(text);
            triggered = true;
        }
    }
示例#3
0
 //public PingGUI deathStuff;
 void Update()
 {
     /*if(eTransform == null){
      *      InitializeEntity();
      * }*/
     if (withinKillingRange())
     {
         Game.ReloadCurrentLevel();
         PingGUI.PopupText("They caught you...");
         return;
     }
     if (eTransform != null)         //only update if we've been initialized
     {
         UpdateEntity(Time.deltaTime);
     }
 }
示例#4
0
文件: Level.cs 项目: chapayGhub/GGJ13
    void Begin()
    {
        if (definition.IsEndCredits)
        {
            PingGUI.RollCredits();
        }
        if (definition.IsIntro)
        {
            PingGUI.DoIntro();
        }
        else
        {
            // do intro stuff here
            PingGUI.PopupText(definition.IntroText);

            LoadMap();
        }
    }
示例#5
0
 void Awake()
 {
     if( instance == null )
         instance = this;
 }