Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        m_rb           = GetComponent <Rigidbody2D>();
        m_spriteRender = GetComponent <SpriteRenderer>();
        m_colorFlipper = GetComponent <ColourFlipper>();

        m_animator = GetComponent <Animator>();
    }
Ejemplo n.º 2
0
 void Awake()
 {
     if (Instance != null)
     {
         Destroy(Instance);
     }
     Instance = this;
 }