Ejemplo 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
 }
Ejemplo 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");
        }
    }
Ejemplo n.º 3
0
    // Update is called once per frame
    void Update()
    {
        mUpdateCount++;

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