Ejemplo n.º 1
0
    void Awake()
    {
        currentEnemyHealth = initialEnemyHealth;
        deathPoints        = 5;

        conf = FindObjectOfType <MemberConfig>();
    }
Ejemplo n.º 2
0
    void Start()
    {
        level = FindObjectOfType <GameController7_14>();
        conf  = FindObjectOfType <MemberConfig>();

        position = transform.position;
        velocity = new Vector3(Random.Range(-3, 3), Random.Range(-3, 3), 0);
    }
Ejemplo n.º 3
0
    void Start()
    {
        //Get level and config data
        flockManager = FindObjectOfType <FlockManager>();
        conf         = FindObjectOfType <MemberConfig>();

        position = transform.position;
        velocity = new Vector3(Random.Range(-3, 3), Random.Range(-3, 3), 0);
    }
Ejemplo n.º 4
0
    private void Start()
    {
        levelObj = GameObject.FindGameObjectWithTag("Level");
        level    = levelObj.GetComponent <Level>();
        conf     = FindObjectOfType <MemberConfig>();

        position = transform.position;
        //velocity = new Vector3(Random.Range(-3, 3), Random.Range(-3, 3), Random.Range(-3, 3));

        pointToObj = Camera.main.GetComponent <PointToObject>();
    }
        /// <summary>
        /// Allow to configure the model before it is blocked.
        /// </summary>
        /// <param name="modelBuilder">The builder that defines the model for the context being created</param>
        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            BookingConfig.SetBuilder(modelBuilder.Entity <Booking>());
            CourtConfig.SetBuilder(modelBuilder.Entity <Court>());
            MemberConfig.SetBuilder(modelBuilder.Entity <Member>());
            SportConfig.SetBuilder(modelBuilder.Entity <Sport>());
            UserConfig.SetBuilder(modelBuilder.Entity <User>());

            ModelBuilderExtensions.Seed(modelBuilder);

            base.OnModelCreating(modelBuilder);
        }
Ejemplo n.º 6
0
    // Use this for initialization
    void Start()
    {
        conf = FindObjectOfType <MemberConfig>();

        members = new List <Member>();
        enemies = new List <Enemy>();

        Spawn(memberPrefab, numberOfMembers);
        Spawn(enemyPrefab, numberOfEnemies);

        members.AddRange(FindObjectsOfType <Member>());
        enemies.AddRange(FindObjectsOfType <Enemy>());
    }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            base.OnModelCreating(modelBuilder);

            // Initialize Member Manager Config
            modelBuilder.Configurations.Add(MemberManagerConfig.Create());
            modelBuilder.Configurations.Add(MemberManagerSettingsConfig.Create());

            // Initialize Member Config
            modelBuilder.Configurations.Add(MemberConfig.Create());
            modelBuilder.Configurations.Add(MemberLoginConfig.Create());
            modelBuilder.Configurations.Add(MemberOptionsConfig.Create());
        }
Ejemplo n.º 8
0
        public MemberExtension GetMemberExtension()
        {
            var memberExtension = HostConstObject.Container.Resolve <ICurrencyService>().GetSingleById <MemberExtension>(Id);

            if (memberExtension == null)
            {
                memberExtension = new MemberExtension
                {
                    Id             = Id,
                    NickName       = NickName,
                    Birthday       = Birthday,
                    Sex            = Sex,
                    MemberType     = MemberType,
                    Province       = Province,
                    City           = City,
                    District       = District,
                    Street         = Street,
                    RegionName     = RegionName,
                    Address        = Address,
                    Config         = MemberConfig.ToJson(),
                    ChannelId      = ChannelId,
                    ReferrerId     = ReferrerId,
                    ParentIds      = ParentIds,
                    InvitationCode = InvitationCode
                };
            }
            else
            {
                memberExtension.NickName       = NickName;
                memberExtension.Birthday       = Birthday;
                memberExtension.Sex            = Sex;
                memberExtension.MemberType     = MemberType;
                memberExtension.Province       = Province;
                memberExtension.City           = City;
                memberExtension.District       = District;
                memberExtension.Street         = Street;
                memberExtension.RegionName     = RegionName;
                memberExtension.Address        = Address;
                memberExtension.Config         = MemberConfig.ToJson();
                memberExtension.ChannelId      = ChannelId;
                memberExtension.ReferrerId     = ReferrerId;
                memberExtension.ParentIds      = ParentIds;
                memberExtension.InvitationCode = InvitationCode;
            }

            return(memberExtension);
        }
Ejemplo n.º 9
0
    private Vector3 push = new Vector3();      //add push after Combine

    void Start()
    {
        level = FindObjectOfType <Level> ();
        conf  = FindObjectOfType <MemberConfig> ();

        position = transform.position;
        velocity = new Vector3(Random.Range(-3, 3), Random.Range(-3, 3), 0);

        if (level.rightToLeft)
        {
            push = push + new Vector3(-1, 0, 0);
        }
        else
        {
            push = push + new Vector3(1, 0, 0);
        }
    }
Ejemplo n.º 10
0
    void Awake()
    {
        rB.GetComponent <Rigidbody>();
        anim.GetComponent <Animator>();
        chickenAudio.GetComponent <AudioSource>();
        player   = GameObject.FindGameObjectWithTag("Player");
        pFs      = GetComponent <Pathfinding>();
        mapAreas = GameObject.FindGameObjectsWithTag("Map");
        pCmS     = player.GetComponent <Player_Controller_Movement>();
        conf     = FindObjectOfType <MemberConfig>();

        selfMapArea = GameObject.FindGameObjectWithTag("Map");

        speed = 10f;

        attackDistance = 2f;

        attackDamage = 30f;

        canAttack = true;
    }
Ejemplo n.º 11
0
        protected PrimitiveMember HandleMemberConfig(IEntityMetaData metaData, Type realType, IMemberConfig memberConfig,
                                                     IMap <String, Member> explicitMemberNameToMember, IMap <String, Member> allMemberNameToMember)
        {
            if (memberConfig == null)
            {
                return(null);
            }
            if (!(memberConfig is CompositeMemberConfig))
            {
                PrimitiveMember member = HandleMemberConfigIfNew(realType, memberConfig.Name, explicitMemberNameToMember);
                explicitMemberNameToMember.Put(memberConfig.Name, member);
                ((IPrimitiveMemberWrite)member).SetTransient(memberConfig.Transient);

                PrimitiveMember definedBy = memberConfig.DefinedBy != null?HandleMemberConfigIfNew(realType, memberConfig.DefinedBy,
                                                                                                   allMemberNameToMember) : null;

                ((IPrimitiveMemberWrite)member).SetDefinedBy(definedBy);
                return(member);
            }
            MemberConfig[]    memberConfigs = ((CompositeMemberConfig)memberConfig).GetMembers();
            PrimitiveMember[] members       = new PrimitiveMember[memberConfigs.Length];
            for (int a = memberConfigs.Length; a-- > 0;)
            {
                MemberConfig    memberPart = memberConfigs[a];
                PrimitiveMember member     = HandleMemberConfigIfNew(realType, memberPart.Name, explicitMemberNameToMember);
                members[a] = member;
            }
            PrimitiveMember compositeIdMember = CompositeIdFactory.CreateCompositeIdMember(metaData, members);

            explicitMemberNameToMember.Put(memberConfig.Name, compositeIdMember);
            ((IPrimitiveMemberWrite)compositeIdMember).SetTransient(memberConfig.Transient);

            PrimitiveMember definedBy2 = memberConfig.DefinedBy != null?HandleMemberConfigIfNew(realType, memberConfig.DefinedBy, allMemberNameToMember)
                                             : null;

            ((IPrimitiveMemberWrite)compositeIdMember).SetDefinedBy(definedBy2);
            return(compositeIdMember);
        }
Ejemplo n.º 12
0
    void Awake()
    {
        GameObject gameManagerObject = GameObject.Find("Game_Manager");

        gMs = gameManagerObject.GetComponent <GameManager>();

        conf = FindObjectOfType <MemberConfig>();

        gMs.betweenRounds       = true;
        roundTime               = 90;
        initialRoundTime        = 90;
        betweenRoundTime        = 10;//
        initialBetweenRoundTime = 30;
        resumingGameTime        = 5f;

        startScene = 0;

        roundText.text = "Round 1 Start's in";

        timerCanvas.SetActive(true);

        pauseMenuconrols = GetComponent <PM_Controls>();
    }
Ejemplo n.º 13
0
 public static MemberConfig getInstance()
 {
     if (m_instance == null)
         m_instance = new MemberConfig();
     return m_instance;
 }