コード例 #1
0
    void OnMouseDown()
    {
        if (AvatarActions.playerDead)
        {
            ClickToRestart = gameObject.GetComponent("avatar") as AvatarActions;

            ClickToRestart.OnMouseDown();
        }
    }
コード例 #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];
            }
        }