示例#1
0
 void Start()
 {
     me = GetComponent<Entity>();
     camControl = Cache.Get.cameraController;
     movement = me.Movement;
     touch.OnSwipe += OnSwipe;
     touch.OnTouch += OnTouch;
 }
示例#2
0
        void Start()
        {
            Vector3 angles = transform.eulerAngles;
            x = angles.y;
            y = angles.x;

            // Make the rigid body not change rotation
            if (GetComponent<Rigidbody>())
                GetComponent<Rigidbody>().freezeRotation = true;

            targetMovement = target.GetComponent<CMovement>();
            camera = GetComponent<Camera>();
        }
示例#3
0
 void JustSpawned()
 {
     movement = GetComponent<CMovement>();
 }
示例#4
0
 void Start()
 {
     me = GetComponentInParent<Entity>();
     movement = me.Movement;
 }