public void inheritSizeModifiers(Grower oher, bool minSize) { sizeSpeedModifier = oher.sizeSpeedModifier / 2; sizeJumpModifier = oher.sizeSpeedModifier / 2; if (minSize) { sizeSpeedModifier = 0; sizeJumpModifier = 0; } }
private void Awake() { pc = GetComponent <PlayerController>(); grower = GetComponent <Grower>(); splitter = GetComponent <Splitter>(); shaker = GetComponent <ObjectShake>(); death = GetComponent <Death>(); AllSlimes.singleton.livingPlayers.Add(this);//registers player GameManager.instance.nPlayers += 1; }