Exemple #1
0
    // Use this for initialization
    void Start()
    {
        GameObject player = GameObject.Find("Player");

        this.playerMovementSystem = player.GetComponent <AbilityBasicMovement>();
        this.keyInventory         = player.GetComponent <PlayerKeyInventory>();
        this.spriteRenderer       = GetComponent <SpriteRenderer>();
        this.PromptUI.SetActive(false);
        this.isActive = true;
    }
    // Use this for initialization
    void Start()
    {
        this.state                = InteractState.Check;
        this.animator             = GetComponent <Animator>();
        this.playerMovementSystem = GetComponent <AbilityBasicMovement>();
        this.playerDialogueState  = GameObject.Find("Player").GetComponent <AbilityDialogue>();
        this.DirectionSystem      = new FourDirectionSystem();
        this.holdItem.enabled     = false;

        this.HPHandler    = GetComponent <PlayerHealthComponent>();
        this.SPHandler    = GetComponent <PlayerSPComponent>();
        this.KeyInventory = GetComponent <PlayerKeyInventory>();
    }