コード例 #1
0
ファイル: DroneTurret.cs プロジェクト: wchoujaa/RTS
    void Start()
    {
        startTime = Time.time;
        wait      = Random.Range(2.0f, 10.0f);

        launcher        = GetComponentInChildren <AALauncher>();
        launchTransform = launcher.GetComponent <Transform>();
    }
コード例 #2
0
        void Start()
        {
            startTime = Time.time;
            wait      = Random.Range(minWaitTime, maxWaitTime);

            launcher        = GetComponentInChildren <AALauncher>();
            launchTransform = launcher.GetComponent <Transform>();

            laserAim = GetComponentInChildren <LaserAim>();
        }