コード例 #1
0
    // Initialize
    void Start()
    {
        SAP          = GetComponent <ShootsAtPlayer> ();
        WEP          = GetComponent <WeightedEnemyPhysics> ();
        WEP.maxSpeed = maxSpeed;

        clockwise = false;
        circling  = false;
        delay     = diveTime;
    }
コード例 #2
0
ファイル: Turret.cs プロジェクト: gantar22/Binary-Star
    // Initialization
    void Awake()
    {
        WEP          = GetComponent <WeightedEnemyPhysics> ();
        WEP.maxSpeed = 0f;

        SAP      = GetComponent <ShootsAtPlayer> ();
        asteroid = GetComponentInParent <Asteroid> ();
        asteroid.addTurret(this);

        initDegreeClamp();
    }