private void Start() { // index = new Vector3 // { // x = (int)transform.position.x, // y = (int)transform.position.y-2, // z = (int)transform.position.z // }; _mc = GameObject.Find("_CONTROLLERS_").GetComponent <MatrixController>(); _open = false; }
protected virtual void StartEntity() { Lifting = false; AntiSpeedWalking = 30; AntiSpeedRotation = 15; IsFree = true; var tt = GameObject.Find("_CONTROLLERS_"); if (tt != null) { mc = tt.GetComponent <MatrixController>(); } Index = new Vector3(); _trans = gameObject.transform; }
public void Start() { _mc = gameObject.GetComponent <MatrixController>(); }