Example #1
0
 private void Awake()
 {
     rb = GetComponent <Rigidbody>();
     mechaController      = GetComponent <MechaController>();
     canon                = GetComponent <CannonBehavior>();
     _currentMaxSideSpeed = BaseSideSpeed;
 }
    // Use this for initialization
    void Start()
    {
        mechaController = GetComponent <MechaController>();
        scoring         = GetComponent <Scoring>();

        // init variables
        RemainingTimeSec = 0;
        Combo            = 0;

        // randomly init current and next letters

        currLetter = GenerateRandomCharacter();
        EventManager.Instance.OnCurrentLetterChange.Invoke(currLetter.ToString());

        for (int i = 0; i < NextLettersNumber; ++i)
        {
            nextLetters.Add(GenerateRandomCharacter());
        }
        EventManager.Instance.OnNextLettersChange.Invoke(new string(nextLetters.ToArray()));

        EventManager.Instance.OnPastLettersChange.Invoke("");
    }
Example #3
0
 private void Awake()
 {
     m_MechaController = GetComponent <MechaController>();
     rewiredPlayer     = ReInput.players.GetPlayer((int)playerNumber);
 }
Example #4
0
 private void Awake()
 {
     FireRateLaser   = BaseFireRateLaserValue * 1.8f;
     FireRateMissile = BaseFireRateMissileValue * 1.8f;
     mechaController = GetComponent <MechaController>();
 }