首先,对不起我的英语。 :-(在我的游戏中,当敌人产生时(首先所有敌人都死了)然后他们进入行走动画但我想,当他们产卵时,他们进入可怕的动画状态因为战斗模式已启用,我正在考虑bool变量但是什么都没发生,即使我使用this.anim.Play();但没有用。这是我的代码和我的动画师图片。
public void start_firing()
{
firsttime_look_towards_player_bool = true;
firing_mode_activated = true;
stop_next_pos = true;
this.anim.SetBool ("look_here_there",false);
this.anim.SetBool ("idle_look",false);
this.anim.SetBool ("scared_run", true); // not working
if (is_firing_mode_already_on)
{
get_destination_position_script ();
is_firing_mode_already_on = false;
firsttime_look_towards_player_bool = true;
this.anim.Play ("Scared run (no gun)2",0, 0f); //here I want to start scary state
dest_positions_script.get_random_position_for_firing (this,recieve_pos_firing);
}
}