コード例 #1
0
    void Start()
    {
        totalCost  = 0;
        rend       = GetComponent <Renderer>();
        startColor = rend.material.color;

        buildManager = Buildmanager.instance;
    }
コード例 #2
0
    void Start()
    {
        rend       = GetComponent <Renderer>();
        Startcolor = rend.material.color;

        //CREATING AN INSTANCE OF BUILDMANAGER
        buildManager = Buildmanager.instance;
    }
コード例 #3
0
 // Use this for initialization
 void Awake()
 {
     if (instance != null)
     {
         Debug.Log("More than one buildmanager!");
     }
     instance     = this;
     phoneToPlace = standardPhonePrefab;
 }
コード例 #4
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.Log("MOre than one buildmanager");
         return;
     }
     instance = this;
 }
コード例 #5
0
 public static Buildmanager instance; //buildmanager inside the buildmanage
 void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("Multiple BuildManagers");
         return;
     }
     instance = this;//Setting buildmanager to this instance
 }
コード例 #6
0
 /// <summary>
 /// Make's sure there's only one buildManager. Initially sets phone being purchased to null.
 /// </summary>
 void Awake()
 {
     if (instance != null)
     {
         Debug.Log("More than one buildmanager!");
     }
     instance     = this;
     phoneToPlace = null;
     currentMoney = 20;
     numPhones    = 0;
 }
コード例 #7
0
 void Start()
 {
     buildManager = Buildmanager.instance;
 }