void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("More than 1 BuildMechanics!");
     }
     instance = this;
 }
示例#2
0
 void Start()
 {
     buildMechanics = BuildMechanics.instance;
 }
示例#3
0
 void Start()
 {
     buildMechanics   = BuildMechanics.instance;
     tileRender       = GetComponent <Renderer>();
     defaultTileColor = tileRender.material.color;
 }