//Init all variables
        protected override void Start()
        {
            base.Start();
            cs         = GetComponent <DinoPlayer> ();
            lightRadar = GetComponent <RaycastLightRadar> ();

            inputSize  = lightRadar.numberOfRaycast * 2 + 4 * 2;
            lastInputs = new double[1, inputSize];
        }
Esempio n. 2
0
 void Awake()
 {
     dp = GetComponent <DinoPlayer> ();
     rb = GetComponent <Rigidbody2D> ();
 }