Ejemplo n.º 1
0
        // Use this for initialization
        void Start()
        {
            Cooldown = new UnsignedMutateableParameter();
			MinTurnForce = new UnsignedMutateableParameter(0.01f);
			MaxTurnForce = new UnsignedMutateableParameter(1f);
			MaxPreyAngle = new ClampedMutateableParameter (1f, 180f);
			MaxPredatorAngle = new ClampedMutateableParameter (1f, 180f);
			//MaxPredatorAngle.Value = 45f;
            cellHandler = GetComponent<CellHandler>();
            sensorHandler = GetComponent<SensorHandler>();
            sprite = GetComponent<SpriteRenderer>();
            thruster = GetComponent<Thruster>();
            rb2d = GetComponent<Rigidbody2D>();
            LastEjection = Time.time;
        }
Ejemplo n.º 2
0
 void Start()
 {
     self = transform.parent.parent.gameObject;
     ch = GetComponentInParent<CellHandler>();
 }
Ejemplo n.º 3
0
		public float RejuvenationFactor;		// age is reduced by collectedMass * this factor

        void Awake()
        {
            myRb = GetComponent<Rigidbody2D>();
            myCh = GetComponent<CellHandler>();
            mySr = GetComponent<SpriteRenderer>();
        }
Ejemplo n.º 4
0
		// Use this for initialization
		void Start ()
		{
			StaticMinMass = MinMass;
			ch = GetComponent<CellHandler> ();
		}
Ejemplo n.º 5
0
 void Start()
 {
     ch = GetComponent<CellHandler>();
 }
Ejemplo n.º 6
0
 void Start()
 {
     ch = GetComponent<CellHandler>();
     rb = GetComponent<Rigidbody2D>();
 }
Ejemplo n.º 7
0
        void Awake ()
		{
            ThrustToMassRatio = new ClampedMutateableParameter(0.1f, 0.3f);
            ch = GetComponent<CellHandler> ();
        }