예제 #1
0
 void Awake()
 {
     if (!mInstance)
     {
         mInstance = this;
     }
     else
     {
         Destroy(this.gameObject);
         return;
     }
     DontDestroyOnLoad(this.gameObject);
     characterScripts = GetComponent <CharacterScripts>();
 }
예제 #2
0
 void Start()
 {
     Events.ClickedOn         += ClickedOn;
     Events.SetScriptSelected += SetScriptSelected;
     characterScripts          = CharacterData.Instance.characterScripts;
 }