Example #1
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
         GameObject.DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         GameObject.Destroy(this.gameObject);
     }
 }
Example #2
0
 private void Awake()
 {
     MouseInterface.RegisterOnClickRigth(SpawnChunkOnMouse);
     MouseInterface.RegisterOnClickRigth(MapInterface.SelectHexUnderMouse);
 }