Esempio n. 1
0
    public override void InitializeStatus()
    {
        base.InitializeStatus();

        animationStateController = GetComponent <AnimationStateController>();

        random = Random.Range(0, 2);
    }
    // Start is called before the first frame update
    void Start()
    {
        anim       = GetComponent <Animator>();
        playerMqtt = mqttObject.GetComponent <MqttSub>();

        other = otherPlayer.GetComponent <Animator>();
        otherAnimController = otherPlayer.GetComponent <AnimationStateController>();

        anim.SetInteger("health", GetComponent <Health>().maxHealth);
    }
 private void Start()
 {
     animationStateController = GetComponent <AnimationStateController>();
 }