// Start is called before the first frame update void Start() { cmp_mov = GetComponent <Movement>(); cmp_tools = GetComponent <TimersNTools>(); cmp_rot = GetComponent <Rotatement>(); to_down = false; timer = 0; //cmp_tools.Timer_for_bools() }
//-------------------------// // Start is called before the first frame update void Start() { actualDrag = GetComponent <Rigidbody>().drag; inmuneTimer = 0; cmp_test = GetComponent <testscript>(); cmp_modelo_Ply = GetComponent <PlayerModelo>(); cmp_plyView = GetComponent <PlayerView>(); cmp_grnd_Updater = GetComponent <GroundStatsUpdater>(); cmp_mov = GetComponent <Movement>(); cmp_rot = GetComponent <Rotatement>(); cmp_atk = GetComponent <Attacks>(); cmp_timers = GetComponent <TimersNTools>(); cmp_life = GetComponent <Life>(); cmp_life.life = cmp_modelo_Ply.playerLife; protecting = false; cmp_life.protec = protecting; }