void Start() { self = transform.GetComponent <EnemySelf>(); rot = new Vector3(0, 0, vel); txt = GameObject.Find("Score").GetComponent <Text>(); txt.text = Score.ToString(); }
void Start() { SetAnim(); HitPoints = InitialHitPoints; IsAlive = true; //print("MY NAME IS : " + gameObject.name); Player = GameObject.Find("Player"); //Weapons = GetChildObjects(); //wtf fix InitRelationships(); if (EnemySelf != null) { StateManager.Enemies.Add(EnemySelf.GetInstanceID(), this); } //StartAnimationSequence(); //print ("ANIMATIONS : " + Animations.Count.ToString()); }