Esempio n. 1
0
    protected virtual void Awake()
    {
        if (NetworkManager.localPlayerInformation.team == (int)ownedByTeam)
        {
            HouseManager.AddInteractableToObservedLists(null, this);
        }

        Create_ProgressBar();
    }
    protected void Awake()
    {
        starting_ToolID = toolID;
        SetupIndicator();

        if ((int)ownedByTeam == NetworkManager.localPlayerInformation.team)
        {
            HouseManager.AddInteractableToObservedLists(this);
        }

        DirtyObject();
    }
    protected override void Awake()
    {
        Create_ProgressBar();
        notool_Animator = Instantiate(Resources.Load("NoToolNote") as GameObject, Vector3.zero, Quaternion.identity).GetComponentInChildren <Animator>();
        notool_Animator.transform.root.position = transform.position + object_ui_Offset;

        if (toolInteractableType == ToolInteractableType.ToBeCleaned)
        {
            if (NetworkManager.localPlayerInformation.team == (int)ownedByTeam)
            {
                HouseManager.AddInteractableToObservedLists(null, this);
            }
        }
    }