예제 #1
0
    // Use this for initialization
    void Start()
    {
        rotator    = GetComponent <Rotator> ();
        translator = GetComponent <Translator> ();
        rotator.AddListener(this, FCEvent.MIDDLE);
        rotator.AddListener(this, FCEvent.END);
        translator.AddListener(this, FCEvent.END);
        scaler = GetComponent <Scaler> ();
        scaler.AddListener(this, FCEvent.END);

        rotator.rotationTime       = flipTime;
        translator.translateTime   = flipTime;
        translator.translateHeight = flipHeight;

        translator.CalculateValues();
    }