Exemplo n.º 1
0
    protected void StartCharm(float time)
    {
        // get protocols

        //Debug.Log("should be CHARMED for " + time + " seconds");
        MonsterProtocols proto = characterData.getProtocol();
        MonsterChecks    check = characterData.getChecks();

        // initiate conga
        characterData.currentProtocol = AIData.Protocols.Conga;

        if (characterData.path != null)
        {
            characterData.path.Clear();
        }
        // set leader to Soma
        check.specialLeader = PlayerController.instance.gameObject;
        // add self to player's party
        PlayerController.instance.GetComponent <PlayerData>().party.Add(gameObject);
        // get ready to stop it
        StartCoroutine(ExecuteCharm(time));
    }