Example #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;
        }
Example #2
0
 void Start()
 {
     self = transform.parent.parent.gameObject;
     ch = GetComponentInParent<CellHandler>();
 }
Example #3
0
		public float RejuvenationFactor;		// age is reduced by collectedMass * this factor

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