void Awake() { anime = GetComponent <Animator>(); bhvr = (Behaviour)objTo.GetComponent(whatTo); rayDetect = new RayDetect(); bhvr.enabled = false; }
void Awake() { sr = GetComponent <SpriteRenderer>(); box = GetComponent <BoxCollider2D>(); myColor = sr.color; myMask = gameObject.layer; rayDetect = new RayDetect(); }
void Start() { normalSpeed = 25; mgSpeed = 10; x = 0; run = spCrut = tpCrut = false; flip = new Flip(gameObject); motion = new BasicMations(gameObject); rayDetect = new RayDetect(); }
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(); }