コード例 #1
0
 private void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(this);
     }
     else
     {
         instance = this;
     }
 }
コード例 #2
0
 private void Start()
 {
     pMenu = myCanvas.instance.productionMenu; // to disable the unit and building contols when build mode is used.
     sm    = SelectMouse.instance;             // to disable the unit and building contols when build mode is used.
 }