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)); }
void Awake() { self = this; selfT = transform; selfC = GetComponent <Camera>(); }
void Awake() { mCam = target as RTSCamera2D; }