예제 #1
0
    public void TransformBulletIntoScorePU(Vector3 pos)
    {
        Transform currPoint = mSmallScoreList[mSmallPowerUpIndex];

        currPoint.position = pos;
        currPoint.gameObject.SetActive(true);

        EnvironmentalObject currObj = currPoint.GetComponent <EnvironmentalObject>();

        currObj.SetTowardsRandomPlayer(3.0f);
        mSmallPowerUpIndex++;
        if (mSmallPowerUpIndex + 1 > mSmallPowerUpList.Count - 1)
        {
            mSmallPowerUpIndex = 0;
        }
    }
 void OnEnable()
 {
     mSelf = (EnvironmentalObject)target;
 }