Example #1
0
 void Start()
 {
     anim = GetComponent <Animator>();
     move = GetComponent <Movement>();
     coll = GetComponent <CollCheck>();
     sr   = GetComponent <SpriteRenderer>();
 }
Example #2
0
        private void Awake()
        {
            //setup inputs
            jump = new Button("Jump");
            pick = new Button("Pick");
            aim  = new Button("Aim");

            //setup components
            rb = GetComponent <Rigidbody2D>();
            sp = GetComponent <SpriteRenderer>();
            cc = GetComponent <CollCheck>();
        }
Example #3
0
 void Start()
 {
     coll = GetComponent <CollCheck>();
     rb   = GetComponent <Rigidbody2D>();
     anim = GetComponentInChildren <SwitchAnim>();
 }