示例#1
0
        void Awake()
        {
            self  = this;
            selfT = transform;
            selfC = GetComponent <Camera>();

            Curve_bound_yMax = new AnimationCurve(new Keyframe(0, bound.yMax), new Keyframe(1, maxBound.yMax));
            Curve_bound_xMax = new AnimationCurve(new Keyframe(0, bound.xMax), new Keyframe(1, maxBound.xMax));
            Curve_bound_yMin = new AnimationCurve(new Keyframe(0, bound.yMin), new Keyframe(1, maxBound.yMin));
            Curve_bound_xMin = new AnimationCurve(new Keyframe(0, bound.xMin), new Keyframe(1, maxBound.xMin));
        }
示例#2
0
 void Awake()
 {
     self  = this;
     selfT = transform;
     selfC = GetComponent <Camera>();
 }
示例#3
0
 void Awake()
 {
     mCam = target as RTSCamera2D;
 }