コード例 #1
0
 // Use this for initialization
 void Start()
 {
     transform.rotation = Quaternion.Euler(Vector3.zero);
     player = GameObject.FindGameObjectWithTag("Player");
     animL = gameObject.GetComponent<AnimationL>();
     animR = gameObject.GetComponent<AnimationR>();
 }
コード例 #2
0
ファイル: PlayerUnit.cs プロジェクト: RickMusters/projecten
 // Use this for initialization
 public override void Start()
 {
     sprLeft = GetComponent<AnimationL>();
     sprRight = GetComponent<AnimationR>();
     base.Start ();
 }
コード例 #3
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>();
 }
コード例 #4
0
 // Use this for initialization
 void Start()
 {
     animLeft = GetComponent<AnimationL>();
     animRight = GetComponent<AnimationR>();
 }
コード例 #5
0
ファイル: PlayerUnit.cs プロジェクト: RickMusters/projecten
 // Use this for initialization
 public override void Start()
 {
     sprLeft  = GetComponent <AnimationL>();
     sprRight = GetComponent <AnimationR>();
     base.Start();
 }