Beispiel #1
0
    /// <summary>
    /// Use this for initialization
    /// </summary>
    void Start ()
    {
        if(editModeOnStart) {
            editModeState = EditModeState.Active;
            Time.timeScale = editModeTimeScale;    
        } else {
            editModeState = EditModeState.Inactive;
            Time.timeScale = 1;
        }
		pauseCont = gameObject.GetComponent<PauseResourceController>();
	}
Beispiel #2
0
	// Use this for initialization
	void Start () {
		pauseCont = GameObject.Find ("EditModeController").GetComponent<PauseResourceController> ();
	}