protected void Start() { transformManager = TransformManagerFactory.Instance.CreateInstance(Context.TransformManagerDescriptor, Context.TransformManagerParameters); transformManager.Context = Context; transformManager.ExtElemReferenceTransform = this.transform; transformManager.Update(); }
// Update is called once per frame protected void Update() { if (transformManager == null) { return; } transformManager.Update(); }
protected void Start() { Hint = GameObject.Instantiate(Resources.Load <GameObject>("Hint"), this.transform); Hint.transform.localPosition = new Vector3(0, 0, 0); Hint.SetActive(false); transformManager = TransformManagerFactory.Instance.CreateInstance(Context.TransformManagerDescriptor, Context.TransformManagerParameters); transformManager.Context = Context; transformManager.ExtElemReferenceTransform = this.transform; transformManager.Update(); UpdateConditions(); }