示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     currHealth     = maxHealth;
     vibes          = GameObject.FindGameObjectWithTag("Music").GetComponent <VibeCheck>();
     ps             = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerStats>();
     startValue     = this.transform.parent.transform.position;
     spawnOffset    = (int)vibes.songPosInBeats + 6;
     divisionOffset = 6;
     endValue       = new Vector3(-3.6f, .8f, 0);
     state          = EnemyState.MOVING;
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     startValue = this.transform.position;
     endValue   = new Vector3(0, startValue.y, startValue.z);
     vibes      = GetComponentInParent <VibeCheck>();
 }