コード例 #1
0
    public void FireDualLasers()
    {
        DualLasers dualLaser = Instantiate(dualLaserPrefab, transform.position, new Quaternion()) as DualLasers;

        dualLaser.owningPlayer = playerEnum;
        dualLaser.SetColor(player.playerColor);
        dualLaser.thisPlayer = this.player;
    }
コード例 #2
0
    protected override void Awake()
    {
        base.Awake();
        maxHealth = 145;

        dualLaserPrefab  = Resources.Load <DualLasers>("Prefabs/DualLasers");
        chargeShotPrefab = Resources.Load <ChargeShot>("Prefabs/ChargeShot");
    }
コード例 #3
0
    protected override void Awake()
    {
        base.Awake();

        dualLaserPrefab       = Resources.Load <DualLasers>("Prefabs/DualLasers");
        chargeShotPrefab      = Resources.Load <ChargeShot>("Prefabs/ChargeShot");
        masochistShieldPrefab = Resources.Load <MasochistShield>("Prefabs/MasochistShield");
        vampireShieldPrefab   = Resources.Load <VampireShield>("Prefabs/VampireShield");
    }
コード例 #4
0
ファイル: JoshAI.cs プロジェクト: jslawski/BulletHeaven
        private Collider[] FindDualLaserAttacks(Collider[] allObjects)
        {
            List <Collider> lasers = new List <Collider>();

            for (int i = 0; i < allObjects.Length; i++)
            {
                DualLasers thisLaser = allObjects[i].GetComponentInParent <DualLasers>();
                if (thisLaser != null && thisLaser.owningPlayer != ai.thisShip.playerEnum)
                {
                    lasers.Add(allObjects[i]);
                }
            }

            return(lasers.ToArray());
        }
コード例 #5
0
    public void DualLaserAttack()
    {
        DualLasers dualLaser = Instantiate(dualLaserPrefab, transform.position, new Quaternion()) as DualLasers;

        dualLaser.owningPlayer = playerEnum;
    }