예제 #1
0
    public float BetterTPTime = 5f;         // How long BT will last

    public override void PickUpMe(GameObject byObject)
    {
        CharMovement OtherCM = byObject.GetComponent <CharMovement>();

        if (OtherCM != null)
        {
            OtherCM.MakeBetterTP(BetterTPTime);
            GameManager.Instance.IncreaseGamePoints(PointsOnTake);
            Destroy(gameObject);
        }
    }