// Use this for initialization void Start() { lifeAxe = 100; getNextAxe = GetComponent <ChangeAxeInRow>(); colorAxe = GetComponent <CollorAxe>(); meshRendererAxe = GetComponent <MeshRenderer>(); printText = GameObject.Find("Count Hammer").GetComponent <text>(); }
void Awake() { this.GetComponent <AudioSource>().PlayOneShot(dropWeapon, 2f); axeRandom = GetComponent <AxeRandom>(); audSource = this.GetComponent <AudioSource>(); meshRenderer = this.GetComponent <MeshRenderer>(); changeAxeInRow = GameObject.Find("Weapon_30").GetComponent <ChangeAxeInRow>(); printText = GameObject.Find("Count Hammer").GetComponent <text>(); dieAfter5Frames = 0; fpsTouchMe = false; }