Exemple #1
0
    // Start is called before the first frame update
    void Start()
    {
        playerMqtt = mqttObject.GetComponent <MqttSub>();

        m_RectTransform = playerText.GetComponent <RectTransform>();
        speed           = 3f;
        playerText.text = "";
    }
    // 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);
    }