public void create(float splitRate, float attackPotency, float decayRate, int faction, float mutationRate, //Transform parentGroup, Vector2 move, float speed, Resources res, bool splitting) { //this.transform.parent=parentGroup; this.res=res; this.speed=speed; this.move=move; this.splitRate = splitRate; this.attackPotency = attackPotency; this.decayRate = decayRate; this.mutationRate=mutationRate; splitTime = 1; started = true; attributes=gameObject.GetComponent<MAttributes>(); attributes.faction = faction; this.splitting=splitting; }
void Start() { attributes=gameObject.GetComponent<MAttributes>(); }
void Start() { dead=false; attributes=gameObject.GetComponent<MAttributes>(); }