Exemplo n.º 1
0
    void OnMouseDown()
    {
        if (AvatarActions.playerDead)
        {
            ClickToRestart = gameObject.GetComponent("avatar") as AvatarActions;

            ClickToRestart.OnMouseDown();
        }
    }
Exemplo n.º 2
0
        public void AddSequence(string name, bool isOptional, bool isSelected)
        {
            AvatarActions.Add(new StreamAvatarsAvatarAction(RegisterCollectionSynchronizationCallback)
            {
                Name       = name,
                IsOptional = isOptional,
                IsSelected = isSelected
            });

            if (ActiveAction == null)
            {
                ActiveAction = AvatarActions[0];
            }
        }