void Start() { // Store reference to attached component controller = GetComponent <Rigidbody2D>(); HPC = GameObject.Find("HPC").GetComponent <HPController>(); seedSystem = GameObject.Find("SeedSystem").GetComponent <SeedSystem>(); hp = maxhp = seedSystem.maxhp(); HPC.UpdateHP(hp, maxhp); lastHunger = Time.time * 1000; if (seedSystem.getAttackBuff()) { weapon.Buff(); } }