예제 #1
0
 void OnTriggerEnter(Collider other)
 {
     if (save != null && other.gameObject.tag == "Player")
     {
         print("Salvei");
         save = save.SaveNow();
         GameObject.Destroy(myself);
         GameObject.Find("Charater").GetComponent <GUIController> ().CheckpointMessage();
     }
 }
예제 #2
0
    private void UpdateCheckpoints(SaveChildScript currentSave)
    {
        int i;

        for (i = 0; i < CPList.Length; i++)
        {
            if (CPList [i] != null)
            {
                CPList [i].save = currentSave;
                print("Atualizei o checkpoint " + i);
            }
        }
    }