/** * 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; }
private void Awake() { m_ToolsPalette = FindObjectOfType <ToolsPalette>(); }