Esempio n. 1
0
 /// <summary>
 /// This function is called when the object becomes enabled and active.
 /// </summary>
 void OnEnable()
 {
     ExecuteOrderTest.Log("[ManagerB] OnEnable");
     Debug.Log("ManagerB. this=" + GetInstanceID() + " sInstance=" +
               (ManagerB.sInstance == null ? "null" : "" + ManagerB.sInstance.GetInstanceID()));
     count = 1;
     //Debug.Log("Check ManagerA. " + ManagerA.Instance.count);	// ken: this cause forever loop
 }
Esempio n. 2
0
    /// <summary>
    /// This function is called every fixed framerate frame, if the MonoBehaviour is enabled.
    /// </summary>
    void FixedUpdate()
    {
        mFixedUpdateCount++;

        if (mFixedUpdateCount >= 1 && mFixedUpdateCount <= 2)
        {
            ExecuteOrderTest.Log("[MonoA] " + CountToStr(mFixedUpdateCount) + " FixedUpdate");
        }
    }
Esempio n. 3
0
    // Update is called once per frame
    void Update()
    {
        mUpdateCount++;

        if (mUpdateCount >= 1 && mUpdateCount <= 2)
        {
            ExecuteOrderTest.Log("[MonoB] " + CountToStr(mUpdateCount) + " Update");
        }
    }
Esempio n. 4
0
 public ManagerA()
 {
     ExecuteOrderTest.Log("[ManagerA] Construction: " + GetInstanceID());
 }
Esempio n. 5
0
 /// <summary>
 /// This function is called when the object becomes enabled and active.
 /// </summary>
 void OnEnable()
 {
     ExecuteOrderTest.Log("[ManagerA] OnEnable");
     count = ManagerB.Instance.count;
     Debug.Log("[ManagerA] managerB.count=" + ManagerB.Instance.count);
 }
Esempio n. 6
0
 public ScriptableObjB()
 {
     ExecuteOrderTest.Log("[ScriptableObjB] Construction");
 }
Esempio n. 7
0
 /// <summary>
 /// This function is called when the object becomes enabled and active.
 /// </summary>
 void OnEnable()
 {
     ExecuteOrderTest.Log("[ScriptableObjB] OnEnable");
 }
Esempio n. 8
0
 public void Use()
 {
     ExecuteOrderTest.Log("[ScriptableObjB] Use");
 }
Esempio n. 9
0
 public void Hello()
 {
     ExecuteOrderTest.Log("[MonoA] Hello");
 }
Esempio n. 10
0
 // Use this for initialization
 void Start()
 {
     ExecuteOrderTest.Log("[MonoA] Start");
 }
Esempio n. 11
0
 /// <summary>
 /// Awake is called when the script instance is being loaded.
 /// </summary>
 void Awake()
 {
     ExecuteOrderTest.Log("[MonoA] awake");
 }