/**
     * FUNCTION NAME: Start
     * DESCRIPTION  : Caches components.
     * INPUTS       : None
     * OUTPUTS      : None
     **/
    void Start()
    {
        m_Transform    = GetComponent <Transform>();
        m_Camera       = GetComponent <Camera>();
        m_AudioSource  = GetComponent <AudioSource>();
        m_ToolsPalette = FindObjectOfType <ToolsPalette>();

        m_InitialSize     = m_Camera.orthographicSize;
        m_InitialPosition = m_Transform.position;

        m_Speed = m_MinSpeed;
    }
Example #2
0
 private void Awake()
 {
     m_ToolsPalette = FindObjectOfType <ToolsPalette>();
 }