コード例 #1
0
ファイル: HandleMovement.cs プロジェクト: attraxion/2dfg
 void Start()
 {
     _rb2d   = GetComponent <Rigidbody2D>();
     _states = GetComponent <StateManager>();
     _anim   = GetComponent <HandleAnimations>();
     _rb2d.freezeRotation = true;
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     rb                = GetComponent <Rigidbody2D>();
     states            = GetComponent <StateManager>();
     anim              = GetComponent <HandleAnimations>();
     rb.freezeRotation = true;
 }
コード例 #3
0
 // referencias
 void Start()
 {
     handleDC       = GetComponent <HandleDamageCollider>();
     handleAnim     = GetComponent <HandleAnimations>();
     HandleMovement = GetComponent <HandleMovement>();
     sRenderer      = GetComponentInChildren <SpriteRenderer>();
 }
コード例 #4
0
 void Start()
 {
     audioManager      = AudioManagerScript.getInstance();
     rb                = GetComponent <Rigidbody2D>();
     states            = GetComponent <StateManager>();
     anim              = GetComponent <HandleAnimations>();
     rb.freezeRotation = true;
 }
コード例 #5
0
 public void Start()
 {
     // get other scripts
     handleDC       = GetComponent <HandleDamageColliders>();
     handleAnim     = GetComponent <HandleAnimations>();
     handleMovement = GetComponent <HandleMovement>();
     sRenderer      = GetComponentInChildren <SpriteRenderer>();
     particleVar    = GetComponent <ParticleExplosion>();
 }
コード例 #6
0
    void Start()
    {
        audioManager   = GetComponent <CharacterAudioManager> ();
        handleShooting = GetComponent <HandleShooting>();
        handleAnim     = GetComponent <HandleAnimations>();

        if (mesh != null)
        {
            rend           = mesh.GetComponent <Renderer> ();
            initalColor    = rend.material.GetColor("_RimColor");
            initalRimPower = rend.material.GetFloat("_RimPower");
        }

        attacking = false;
    }
コード例 #7
0
    void Start()
    {
        //_mat = mat.GetComponent<Renderer>().material;
        source         = GetComponent <AudioSource>();
        shake          = camera.GetComponent <Camera_Shake>();
        blood          = GetComponentsInChildren <ParticleSystem>();
        handleDC       = GetComponent <HandleDamageColliders>();
        handleAnim     = GetComponent <HandleAnimations>();
        handleMovement = GetComponent <HandleMovement>();
        //blood = GetComponentInChildren<ParticleSystem>();



        spare = false;
        mercy = false;
    }
コード例 #8
0
 // Use this for initialization
 void Start()
 {
     characterAnimations = GetComponent <HandleAnimations>();
     transformComponent  = GetComponent <Transform>();
 }
コード例 #9
0
 // Use this for initialization
 void Start()
 {
     mainCharacterChainConnection = mainCharacterRB.GetComponent <ChainConnection> ();
     characterAnimations          = mainCharacterRB.GetComponent <HandleAnimations>();
 }
コード例 #10
0
 // Use this for initialization
 void Start()
 {
     anim = GetComponent <HandleAnimations> ();
 }
コード例 #11
0
 // Use this for initialization
 void Start()
 {
     mainCharacterAnimationComponent = mainCharacterCombatComponent.GetComponent <HandleAnimations>();
     glowImageAlphaSpeed             = glowImage.color.a / ((glowImageMaxScale - glowImage.GetComponent <Transform>().localScale.x) / glowImageSpeed);
 }
コード例 #12
0
 // Use this for initialization
 void Start()
 {
     characterAnimations      = GetComponent <HandleAnimations>();
     chainConnectionComponent = GetComponent <ChainConnection>();
 }
コード例 #13
0
 // Use this for initialization
 void Start()
 {
     rbComponent        = GetComponent <Rigidbody2D>();
     animationComponent = GetComponent <HandleAnimations>();
 }