protected InventoryItem scroll; // Scroll To Remove from inventory after casting

    protected void Super()
    {
        animator            = GetComponent <CharacterAnimator>();
        characterInfo       = GetComponent <CharacterInformation>();
        TextPopUpController = GameObject.Find("PopUpTextSystem").GetComponent <TextPopUpController>();
        cam    = GameObject.Find("MainCamera");
        HpLeft = characterInfo.Health;
    }
Beispiel #2
0
    public static TextPopUpController Create(Vector3 position, string text, Color?color = null, int fontSize = 8)
    {
        Transform           damagePopUpText     = Instantiate(GameAssets.i.TextPopUp, position, Quaternion.identity);
        TextPopUpController textPopUpController = damagePopUpText.GetComponent <TextPopUpController>();

        textPopUpController.Setup(text, color, fontSize);
        return(textPopUpController);
    }
Beispiel #3
0
 public void PassTheRoom(GameObject room)
 {
     MainCharacterData.curStamina -= MainCharacterData.moveCost;
     UIStaminaBarController.instance.SetValue(MainCharacterData.curStamina, MainCharacterData.maxStamina);
     TextPopUpController.Create(room.transform.position, "-" + MainCharacterData.moveCost, Color.white, 8);
     // RoomController roomController = room.GetComponent<RoomController>();
     // if(!roomController.isClear){
     //     EnterRoom(room);
     // }
 }