void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         instance = this;
     }
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     tileIndicatorScript = TileIndicator.GetComponent <TargettedTileController>();
 }