// Use this for initialization void Start() { character = GetComponent <Character>(); animator = GetComponent <Animator>(); AIcontrols = GetComponentInParent <AIControls>(); sharedProperties = GetComponentInParent <SharedProperties>(); if (GetComponentInParent <Opponent>() != null) { player = FindObjectOfType <Player>(); playerCharacter = player.GetComponentInChildren <Character>(); opponentController = GetComponentInParent <Opponent>(); animator.SetInteger("hadoukenOwner", 2); } else if (GetComponentInParent <Player>() != null) { opponent = FindObjectOfType <Opponent>(); opponentCharacter = opponent.GetComponentInChildren <Character>(); playerController = GetComponentInParent <Player>(); animator.SetInteger("hadoukenOwner", 1); } decisionTimerInput = decisionTimer; antiAirTimerInput = antiAirTimer; antiAirTimer = 0f; decision = Random.Range(0, 100); lastUsedNormal = LastUsedNormal.none; }
// Use this for initialization void Start() { sharedProperties = GetComponent <SharedProperties>(); turnPunchCharge = 0; backCharging = 0; backChargedWindowInput = backChargedWindow; downCharging = 0; downChargedWindowInput = downChargedWindow; }
// Use this for initialization void Start() { animator = GetComponentInChildren <Animator>(); character = GetComponentInChildren <Character>(); sharedProperties = GetComponent <SharedProperties>(); if (GetComponentInChildren <FeiLong>() != null) { feiLong = GetComponentInChildren <FeiLong>(); } }
private void SnapToGrid(Transform[] transforms) { Undo.RecordObjects(transforms as Object[], "Snap to Grid"); foreach (Transform t in transforms) { t.position = pg_Util.SnapValue(t.position, snapValue); } gridRepaint = true; SharedProperties.PushToGrid(snapValue); }
private void SnapToGrid(Transform[] transforms) { #if UNITY_4_3 Undo.RecordObjects(transforms as Object[], "Snap to Grid"); #else Undo.RegisterUndo(transforms as Object[], "Snap to Grid"); #endif foreach (Transform t in transforms) { t.position = pg_Util.SnapValue(t.position, snapValue); } SharedProperties.PushToGrid(snapValue); }
void Awake() { if (doInitiateCharacter) { InitiateCharacter(); } gameObject.layer = LayerMask.NameToLayer("Player1"); gameObject.tag = "Player1"; foreach (Transform character in gameObject.transform) { character.gameObject.layer = LayerMask.NameToLayer("Player1"); character.gameObject.tag = "Player1"; } character = GetComponentInChildren <Character>(); animator = GetComponentInChildren <Animator>(); mugShot = mugShotObject.GetComponent <Image>(); sharedProperties = GetComponent <SharedProperties>(); }
// Use this for initialization void Start() { if (GetComponentInParent <Opponent>() != null) { player = FindObjectOfType <Player>(); playerCharacter = player.GetComponentInChildren <Character>(); } else if (GetComponentInParent <Player>() != null) { opponent = FindObjectOfType <Opponent>(); opponentCharacter = opponent.GetComponentInChildren <Character>(); } character = GetComponent <Character>(); animator = GetComponent <Animator>(); AIcontrols = GetComponentInParent <AIControls>(); chargeSystem = GetComponentInParent <ChargeSystem>(); sharedProperties = GetComponentInParent <SharedProperties>(); regularFarRangeDecisions = new List <string>(); regularMidRangeDecisions = new List <string>(); regularCloseRangeDecisions = new List <string>(); airAttackDecisions = new List <string>(); otherFighterBlockedDecisions = new List <string>(); otherFighterGotHitDecisions = new List <string>(); knockDownDecisions = new List <string>(); antiAirDecisions = new List <string>(); RegularFarRangeDecisionTrees(); RegularMidRangeDecisionTrees(); RegularCloseRangeDecisionTrees(); AirAttackDecisionTrees(); OtherFighterBlockedDecisionTrees(); OtherFighterGotHitDecisionTrees(); KnockDownDecisionTrees(); AntiAirDecisionTrees(); decision = Random.Range(0, DECISION_MAX); decisionTimerInput = decisionTimer; antiAirTimerInput = antiAirTimer; antiAirTimer = 0f; }
// Use this for initialization void Start() { if (GetComponentInParent <Opponent>() != null) { player = FindObjectOfType <Player>(); playerCharacter = player.GetComponentInChildren <Character>(); } else if (GetComponentInParent <Player>() != null) { opponent = FindObjectOfType <Opponent>(); opponentCharacter = opponent.GetComponentInChildren <Character>(); } character = GetComponent <Character>(); animator = GetComponent <Animator>(); AIcontrols = GetComponentInParent <AIControls>(); sharedProperties = GetComponentInParent <SharedProperties>(); decisionTimerInput = decisionTimer; antiAirTimerInput = antiAirTimer; antiAirTimer = 0f; decision = Random.Range(0, 100); }
public RealEstateTypesImporter(IProvider provider, IRepositoryFactory repositoryFactory, SharedProperties sharedProperties, ILoggingImports logger) : base(provider, repositoryFactory, sharedProperties, logger) { }
public RegionsTypesOfCitiesAndNeighborhoodsImporter(IProvider provider, IRepositoryFactory repositoryFactory, SharedProperties sharedProperties, ILoggingImports logger) : base(provider, repositoryFactory, sharedProperties, logger) { }
public RegionsCenterImporter(IProvider provider, IParserFactory parserFactory, IRepositoryFactory repositoryFactory, SharedProperties sharedProperties, ILoggingImports logger) : base(provider, parserFactory, repositoryFactory, sharedProperties, logger) { }
public AttributesImporter(IProvider provider, IRepositoryFactory repositoryFactory, SharedProperties sharedProperties, ILoggingImports logger) : base(provider, repositoryFactory, sharedProperties, logger) { }
public CountriesImporter(IProvider provider, IParserFactory parserFactory, IRepositoryFactory repositoryFactory, SharedProperties sharedProperties, ILoggingImports logger) : base(provider, repositoryFactory, sharedProperties, logger) { _parserFactory = parserFactory; }
public RegionsTypesOfCitiesImporter(IProvider provider, IRepositoryFactory repositoryFactory, SharedProperties sharedProperties, ILoggingImports logger) : base(provider, repositoryFactory, sharedProperties, logger) { SubtypeId = RepositoryFactory.Names <Subtype>().GetId("City"); SubclassId = RepositoryFactory.Names <Subclass>().GetId("city"); }
public TrainMetroStationsImporter(IProvider provider, IParserFactory parserFactory, IRepositoryFactory repositoryFactory, SharedProperties sharedProperties, ILoggingImports logger) : base(provider, parserFactory, repositoryFactory, sharedProperties, logger) { }