// Start is called before the first frame update
 void Awake()
 {
     if (Wmanager != null && Wmanager != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         Wmanager = this;
     }
 }
예제 #2
0
 private void Start()
 {
     wm = GameObject.FindWithTag("WoodManager").GetComponent <WoodManager>();
 }
예제 #3
0
 public WoodController()
 {
     wMan = new WoodManager();
 }