示例#1
0
文件: DoorScr.cs 项目: Sillone/Waves
    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;
    }
示例#2
0
        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;
        }
示例#3
0
 public void Start()
 {
     _mc = gameObject.GetComponent <MatrixController>();
 }