// 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; }
void Start() { self = transform.parent.parent.gameObject; ch = GetComponentInParent<CellHandler>(); }
public float RejuvenationFactor; // age is reduced by collectedMass * this factor void Awake() { myRb = GetComponent<Rigidbody2D>(); myCh = GetComponent<CellHandler>(); mySr = GetComponent<SpriteRenderer>(); }
// Use this for initialization void Start () { StaticMinMass = MinMass; ch = GetComponent<CellHandler> (); }
void Start() { ch = GetComponent<CellHandler>(); }
void Start() { ch = GetComponent<CellHandler>(); rb = GetComponent<Rigidbody2D>(); }
void Awake () { ThrustToMassRatio = new ClampedMutateableParameter(0.1f, 0.3f); ch = GetComponent<CellHandler> (); }