Esempio n. 1
0
 void Awake()
 {
     ScanChance = new ClampedMutateableParameter(0f, 1f);
     ScanMaxRange = new UnsignedMutateableParameter();
     PreyFactor = new UnsignedMutateableParameter();
     MaxFleeDistance = new UnsignedMutateableParameter();
     ImportanceFactor = new UnsignedMutateableParameter();
     rayRange = ScanMaxRange.Value;
 }
Esempio n. 2
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;
        }