Beispiel #1
0
 void Awake()
 {
     anime        = GetComponent <Animator>();
     bhvr         = (Behaviour)objTo.GetComponent(whatTo);
     rayDetect    = new RayDetect();
     bhvr.enabled = false;
 }
Beispiel #2
0
 void Awake()
 {
     sr        = GetComponent <SpriteRenderer>();
     box       = GetComponent <BoxCollider2D>();
     myColor   = sr.color;
     myMask    = gameObject.layer;
     rayDetect = new RayDetect();
 }
Beispiel #3
0
 void Start()
 {
     normalSpeed = 25;
     mgSpeed     = 10;
     x           = 0;
     run         = spCrut = tpCrut = false;
     flip        = new Flip(gameObject);
     motion      = new BasicMations(gameObject);
     rayDetect   = new RayDetect();
 }
Beispiel #4
0
 private void Start()
 {
     flip      = new Flip(gameObject);
     motion    = new BasicMations(gameObject);
     rayDetect = new RayDetect();
 }
 void Awake()
 {
     anime     = GetComponent <Animator>();
     coroute   = false;
     rayDetect = new RayDetect();
 }
 void Start()
 {
     coroute   = false;
     rayDetect = new RayDetect();
 }