Beispiel #1
0
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //	* Derived Method: Start
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    private void Start()
    {
        sm_lAttackList.Add(this);

        m_tiTransformInterpreter    = new TransformInterpreter(this);
        m_ttFadeinTimer.FinishTime  = m_fFadeinTime;
        m_ttFadeoutTimer.FinishTime = m_fFadeoutTime;
        m_iImpactParamHashID        = Animator.StringToHash("Impacted");
        Reset();
    }
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //	* Derived Method: Start
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    void Start()
    {
        m_vStartPosition          = transform.localPosition;
        m_ttMissedMovementTracker = new TimeTracker(m_fMissedTimer);
        m_tiTransform             = new TransformInterpreter(this);

        for (int i = 0; i < m_arToScoreAnimation.Length; ++i)
        {
            m_arToScoreAnimation[i].Setup(this.transform);
        }
        for (int i = 0; i < m_arIntoBagAnimation.Length; ++i)
        {
            m_arIntoBagAnimation[i].Setup(this.transform);
        }
    }
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	** Constructor
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 public ScaleInterpreter(TransformInterpreter tiInstance)
 {
     m_tiInstance = tiInstance;
 }
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	** Constructor
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 public LocalRotationInterpreter(TransformInterpreter tiInstance)
 {
     m_tiInstance = tiInstance;
 }
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	** Constructor
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 public WorldRotationInterpreter(TransformInterpreter tiInstance)
 {
     m_tiInstance = tiInstance;
 }
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	* Derived Method: Awake
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 private void Awake()
 {
     m_ttIntroTimer       = new TimeTracker(m_fIntroTime);
     m_TransInterInstance = new TransformInterpreter(this);
 }
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	* Derived Method: Start
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 void Start()
 {
     m_tiInstance     = new TransformInterpreter(this);
     m_vStartPosition = LocalPosition;
 }
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	* Derived Method: Awake
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 protected virtual void Awake()
 {
     m_TransInterInstance = new TransformInterpreter(this);
     m_iEnemyID           = AI_Manager.Add_AI(this);
 }
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	* Derived Method: Awake
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 protected virtual void Awake()
 {
     m_tiTransformInterpreter = new TransformInterpreter(this);
     CreateCooldownTimers();
 }