Beispiel #1
0
    private IEnumerator Explosion()
    {
        Blue_Slime_An.Launch_Death_Animation();
        yield return(new WaitForSeconds(Current_Explosion_Delay));

        Instantiate(Explostion_Prefab, transform.position + new Vector3(0, 0.5f, 0), transform.rotation);
        Destroy(Parent);
    }
    public void Be_Attacked()
    {
        WatcherRobot_Mo.Set_Agro(true);
        Current_Health--;
        print("Watcher Agro");
        if (Current_Health > 0)
        {
            // If bot is alive
            // Make mob angry

            Blue_Slime_An.Launch_Stunt_Animation();
        }
        else
        {
            // If bot is Dead
            // Disable Attack Box

            // Launch Animation
            Audio_Prefab_Sp.Play_A_Sound(0);
            StartCoroutine(Destruction());
            Blue_Slime_An.Launch_Death_Animation();
        }
    }