// Use this for initialization void Start() { transform.rotation = Quaternion.Euler(Vector3.zero); player = GameObject.FindGameObjectWithTag("Player"); animL = gameObject.GetComponent<AnimationL>(); animR = gameObject.GetComponent<AnimationR>(); }
// Use this for initialization public override void Start() { sprLeft = GetComponent<AnimationL>(); sprRight = GetComponent<AnimationR>(); base.Start (); }
// Use this for initialization void Start() { animLeft = GetComponent<AnimationL>(); animRight = GetComponent<AnimationR>(); }
// Use this for initialization void Start() { animRight = GetComponent<AnimationR>(); animRight.index = 0; }
void Start() { lightOn = true; left = false; spotL1.light.color = Color.white; spotL2.light.color = Color.white; spotR1.light.color = Color.clear; spotR2.light.color = Color.clear; _movementSpeed = normalSpeed; audio.PlayOneShot(BackGround); playerhealth = GetComponent<PlayerHealth>(); sprRight = GetComponent<AnimationR>(); sprLeft = GetComponent<AnimationL>(); sprUp = GetComponent<Animation_Up>(); sprUpL = GetComponent<Animation_Up_L>(); sprIdle = GetComponent<Animation_Idle>(); sprIdleL = GetComponent<Animation_Idle_L>(); sprDown = GetComponent<Animation_Down>(); sprDownL = GetComponent<Animation_Down_L>(); }
// Use this for initialization public override void Start() { sprLeft = GetComponent <AnimationL>(); sprRight = GetComponent <AnimationR>(); base.Start(); }