예제 #1
0
	// Use this for initialization
	public override void Start () {
		base.Start ();

		//set up basic stats
		MaxHitPoints = InitialHealth;
		HitPoints = InitialHealth;

		LaserCharge = transform.GetComponentsInChildren<ParticleSystem>()[0];
		LaserFire = GameObject.Find ("Laser_Fire").particleSystem;
		BBallShield = GameObject.Find ("BBall_Shield").GetComponent<BBallShieldCombatant>();

	}
예제 #2
0
    // Use this for initialization
    public override void Start()
    {
        base.Start();

        //set up basic stats
        MaxHitPoints = InitialHealth;
        HitPoints    = InitialHealth;

        LaserCharge = transform.GetComponentsInChildren <ParticleSystem>()[0];
        LaserFire   = GameObject.Find("Laser_Fire").particleSystem;
        BBallShield = GameObject.Find("BBall_Shield").GetComponent <BBallShieldCombatant>();
    }