Example #1
0
    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;
    }
Example #2
0
 void Start()
 {
     attributes=gameObject.GetComponent<MAttributes>();
 }
Example #3
0
 void Start()
 {
     dead=false;
     attributes=gameObject.GetComponent<MAttributes>();
 }