コード例 #1
0
 private void Awake()
 {
     rb = GetComponent <Rigidbody>();
     mechaController      = GetComponent <MechaController>();
     canon                = GetComponent <CannonBehavior>();
     _currentMaxSideSpeed = BaseSideSpeed;
 }
コード例 #2
0
    // 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("");
    }
コード例 #3
0
 private void Awake()
 {
     m_MechaController = GetComponent <MechaController>();
     rewiredPlayer     = ReInput.players.GetPlayer((int)playerNumber);
 }
コード例 #4
0
ファイル: CannonBehavior.cs プロジェクト: MrFouss/Run-Gun-Cry
 private void Awake()
 {
     FireRateLaser   = BaseFireRateLaserValue * 1.8f;
     FireRateMissile = BaseFireRateMissileValue * 1.8f;
     mechaController = GetComponent <MechaController>();
 }