void Awakemethod() { SDirector d = SDirector.getInstance(); d.currentSceneController = this; d.currentSceneController.Load(); }
public static SDirector getInstance() { if (_instance == null) { _instance = new SDirector(); } return(_instance); }
public void setObj(string kind) { Uaction = SDirector.getInstance().currentSceneController as UserAction; this.obj = kind; }
// Use this for initialization void Start() { action = SDirector.getInstance().currentSceneController as UserAction; }
public void setObj() { controllor = (FirstControllor)SDirector.getInstance().currentSceneController; }