Пример #1
0
        private void Awake()
        {
            RB = GetComponent <Rigidbody>();

            Effects = GetComponent <TankEffects>();
            TrajectoryCalculator = GetComponent <TrajectoryCalculator>();
        }
Пример #2
0
        private void Awake()
        {
            Motor   = GetComponent <TankMotor>();
            AimLine = GetComponent <AimLineDraftsman>();
            TrajectoryCalculator = GetComponent <TrajectoryCalculator>();

            TrajectoryCalculator.SetFireSpeed(StartingFireSpeed);
        }
Пример #3
0
        private void Awake()
        {
            Line       = GetComponent <LineRenderer>();
            Trajectory = GetComponent <TrajectoryCalculator>();

            Positions          = new Vector3[PosCount];
            Line.positionCount = PosCount;
        }